package com.cxria.springboottest.security

import org.springframework.security.crypto.password.PasswordEncoder

class MyPasswordEncoder implements PasswordEncoder {

    @Override
    String encode(CharSequence charSequence) {
        return charSequence.toString()
    }

    @Override
    boolean matches(CharSequence charSequence, String s) {
        return charSequence.toString() == s
    }

}
